<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name111: {{ username }}</div>
    <!-- <svg-icon icon-class="link" />
    <svg-icon icon-class="eye" />
    <svg-icon icon-class="eye-open" /> -->

    测试对话框
    <!-- el-dialog 我封装的 => @click="$emit('update:visible', false)" -->
    <el-dialog title="你好" :visible.sync="flag">
      <!-- 默认插槽决定对话框中的内容 -->
      123
    </el-dialog>

    <!-- <div class="test">
      <div class="son">测试scss(新语法)</div>
    </div>

    <div class="son2">测试scss(新语法)</div> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  data() {
    return {
      //
      flag: false
    }
  },
  computed: {
    ...mapGetters([
      'username'
    ])
  }
}
</script>

<style lang="sass" scoped>

// less  定义变量 是 @xx
// scss 和less一样可以嵌套 可以计算 可以使用变量($xx)
$cc: red
.test
  width: 250px
  height: 250px
  background-color: $cc
  .son
    width: 100px
    height: 100px
    background-color: orange
    .son2
      width: 50px
      height: 50px
      background-color: pink

</style>
